package com.skywork.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import com.skywork.domain.CommonData;
import com.skywork.domain.base.MyMapper;

@Mapper
public interface CommonDataMapper extends MyMapper<CommonData> {

	@SuppressWarnings("rawtypes")
	@SelectProvider(type = CommonDataProvider.class, method = "queryDynamicSQL")
	// @Select("SELECT * FROM person WHERE active_flag=1")
	List<HashMap> queryDynamicSQL(@Param("hql") String hql, @Param("param") Map<String, ?> param);

	
	List<CommonData> getByChannelId(@Param("channelId") Long channelId);

}
